package com.halden.TRPG.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class MessageEntity {
    @TableId(type = IdType.AUTO)
    @ExcelProperty("id")
    private Long id;
    @ExcelIgnore
    private String uid;
    @ExcelProperty("时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ExcelProperty("消息")
    private String message;
    @ExcelProperty("用户")
    private String username;
    @ExcelIgnore
    private Long rid;
}
